package business.report.impl;

import business.report.SurveyDesignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.SurveyDesign;
import report.domain.SurveyDesignCriteria;
import report.mapper.SurveyDesignMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "surveyDesignService")
public class SurveyDesignServiceImpl implements SurveyDesignService{
    @Autowired
    SurveyDesignMapper surveyDesignMapper;

    @Override
    public List<SurveyDesign> getSurveyDesign() {
        SurveyDesignCriteria criteria = new SurveyDesignCriteria();
        criteria.createCriteria().getAllCriteria();
        return surveyDesignMapper.selectByExample(criteria);
    }
}
